package com.minsf.rpc.fault.tolerant;

import com.minsf.rpc.model.RpcResponse;

import java.util.Map;

/**
 * @Description 快速失败，直接将错误信息返回给调用方
 * @Author minify
 * @Date 2024/4/1 20:16
 * @Project sf-rpc
 */
public class FailFastTolerantStrategy implements TolerantStrategy {
    @Override
    public RpcResponse doTolerant(Map<String, Object> context, Exception e) {
        throw new RuntimeException(e);
    }
}
